package org.gdufe.pojos.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

//评论
@Data
@TableName("t_comment")
public class Comment implements Serializable {
    //评论评分记录的编号，唯一标识
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //评论图书id
    @JSONField(name = "bId")
    @JsonProperty("bId")
    private Integer bId;
    //评论用户id
    @JSONField(name = "uId")
    @JsonProperty("uId")
    private Integer uId;
    //评论人名称
    private String username;
    //对图书的评论内容
    private String content;
    //对图书的评分
    private Double point;
}
